using UnityEngine;
using System.Collections;

public class PowerupController : MonoBehaviour {

	void OnTriggerEnter( Collider col )
	{
		if( col.tag != "Player" )
			return;
	
		if( name.Contains( "HealthPowerup" ) )
			col.SendMessage( "ChangeHealth", 60.0f );

		Destroy( gameObject );
	}
}
